﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EB7 RID: 3767
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonRemoveFormula : IMessage<RogueCommonRemoveFormula>, IMessage, IEquatable<RogueCommonRemoveFormula>, IDeepCloneable<RogueCommonRemoveFormula>, IBufferMessage
	{
		// Token: 0x17002FC3 RID: 12227
		// (get) Token: 0x0600A8C6 RID: 43206 RVA: 0x001C7ACD File Offset: 0x001C5CCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonRemoveFormula> Parser
		{
			get
			{
				return RogueCommonRemoveFormula._parser;
			}
		}

		// Token: 0x17002FC4 RID: 12228
		// (get) Token: 0x0600A8C7 RID: 43207 RVA: 0x001C7AD4 File Offset: 0x001C5CD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonRemoveFormulaReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FC5 RID: 12229
		// (get) Token: 0x0600A8C8 RID: 43208 RVA: 0x001C7AE6 File Offset: 0x001C5CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonRemoveFormula.Descriptor;
			}
		}

		// Token: 0x0600A8C9 RID: 43209 RVA: 0x001C7AED File Offset: 0x001C5CED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonRemoveFormula()
		{
		}

		// Token: 0x0600A8CA RID: 43210 RVA: 0x001C7AF5 File Offset: 0x001C5CF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonRemoveFormula(RogueCommonRemoveFormula other) : this()
		{
			this.formulaInfo_ = ((other.formulaInfo_ != null) ? other.formulaInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A8CB RID: 43211 RVA: 0x001C7B2A File Offset: 0x001C5D2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonRemoveFormula Clone()
		{
			return new RogueCommonRemoveFormula(this);
		}

		// Token: 0x17002FC6 RID: 12230
		// (get) Token: 0x0600A8CC RID: 43212 RVA: 0x001C7B32 File Offset: 0x001C5D32
		// (set) Token: 0x0600A8CD RID: 43213 RVA: 0x001C7B3A File Offset: 0x001C5D3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaInfo FormulaInfo
		{
			get
			{
				return this.formulaInfo_;
			}
			set
			{
				this.formulaInfo_ = value;
			}
		}

		// Token: 0x0600A8CE RID: 43214 RVA: 0x001C7B43 File Offset: 0x001C5D43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonRemoveFormula);
		}

		// Token: 0x0600A8CF RID: 43215 RVA: 0x001C7B51 File Offset: 0x001C5D51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonRemoveFormula other)
		{
			return other != null && (other == this || (object.Equals(this.FormulaInfo, other.FormulaInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A8D0 RID: 43216 RVA: 0x001C7B84 File Offset: 0x001C5D84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.formulaInfo_ != null)
			{
				num ^= this.FormulaInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A8D1 RID: 43217 RVA: 0x001C7BC0 File Offset: 0x001C5DC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A8D2 RID: 43218 RVA: 0x001C7BC8 File Offset: 0x001C5DC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A8D3 RID: 43219 RVA: 0x001C7BD1 File Offset: 0x001C5DD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.formulaInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A8D4 RID: 43220 RVA: 0x001C7C04 File Offset: 0x001C5E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.formulaInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A8D5 RID: 43221 RVA: 0x001C7C44 File Offset: 0x001C5E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonRemoveFormula other)
		{
			if (other == null)
			{
				return;
			}
			if (other.formulaInfo_ != null)
			{
				if (this.formulaInfo_ == null)
				{
					this.FormulaInfo = new FormulaInfo();
				}
				this.FormulaInfo.MergeFrom(other.FormulaInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A8D6 RID: 43222 RVA: 0x001C7C98 File Offset: 0x001C5E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A8D7 RID: 43223 RVA: 0x001C7CA4 File Offset: 0x001C5EA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 82U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.formulaInfo_ == null)
					{
						this.FormulaInfo = new FormulaInfo();
					}
					input.ReadMessage(this.FormulaInfo);
				}
			}
		}

		// Token: 0x04004482 RID: 17538
		private static readonly MessageParser<RogueCommonRemoveFormula> _parser = new MessageParser<RogueCommonRemoveFormula>(() => new RogueCommonRemoveFormula());

		// Token: 0x04004483 RID: 17539
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004484 RID: 17540
		public const int FormulaInfoFieldNumber = 10;

		// Token: 0x04004485 RID: 17541
		private FormulaInfo formulaInfo_;
	}
}
